<?php
/*
* Kusht Mud.
* ----
* The MIT License
* Copyright (c) 2010 Andrew Tutt
* ----
*/

/* str Packager
*
* Handle's Automated Output Conversions for the Game
*/


class strPackager {
	
	// Switched to a JSON Serialization
	public static function package($msg,$special_type) {
		return json_encode(array($special_type => $msg));
	}
	
	public static function encodeBuffer($buffer) {
		return json_encode($buffer);
	}
}